package com.cl.ks.entity;

import com.cl.mvc.entity.JDBaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name="ks_flow_like")
@org.hibernate.annotations.Table(appliesTo = "ks_flow_like",comment = "点赞表")
@Getter
@Setter
public class KsFlowLike extends JDBaseEntity {

    @ApiModelProperty("目标ID（例如文章ID、评论ID等）")
    @Column(name = "target_id", nullable = false)
    private Integer targetId;

    @ApiModelProperty("目标类型（例如文章、评论等）")
    @Column(name = "target_type", length = 64, nullable = false)
    private String targetType;

    @ApiModelProperty("点赞状态（1: 点赞, 0: 取消点赞）")
    @Column(name = "status", nullable = false)
    private Integer status;
}
